package com.neusoft.neuiotms.dcvm.task;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

import com.neusoft.neuiotms.dcvm.task.cmdbSyn.service.RackUCalcService;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
public class RackUCalcTask extends QuartzJobBean {
    @Autowired
    private RackUCalcService rackUCalcService;

    @Override
    protected void executeInternal(final JobExecutionContext context) throws JobExecutionException {
        RackUCalcTask.log.info("开始计算数据中心u位统计 start{}", System.currentTimeMillis());
        this.rackUCalcService.doCalc();
        RackUCalcTask.log.info("开始计算数据中心u位统计  finish{}", System.currentTimeMillis());
    }

}
